package com.itheima.advice;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

@Aspect
@Component
@Order(100)
public class BAdvice {
    @Pointcut("@annotation(com.itheima.advice.LonOperation)")
    public void pt(){

    }
    @Before("pt()")
    public void before(){
        System.out.println("执行了BAdvice -- before");
    }
}
